﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Domain.Models
{
    [DisplayName("国家")]
    [Owned]
    public class Country
    {
        [DisplayName("国家名称")]
        [StringLength(200)]
        public string Name { get; set; }

        [DisplayName("地址")]
        [StringLength(500)]
        public string Address { get; set; }

        [DisplayName("大洲")]
        [StringLength(25)]
        public string Continent { get; set; }
    }
}
